using System;
using System.Collections.Generic;
using System.Text;

namespace TVDesigner.Generator.Components
{
    public class TVDesignerScreen
    {
        public static String DeclareClass(string package, string xletName)
        {
            StringBuilder sb = new StringBuilder();
            
            //package
            if (package != null && !package.Equals(string.Empty))
            {
                sb.Append("package ").Append(package).Append(";\n\n");
            }

            sb.Append(@"
public interface TVDesignerScreen {
    
    public abstract void keyEvent(java.awt.event.KeyEvent event);

    public abstract void setXlet(").Append(xletName).Append(@" xlet);

}
");
            return sb.ToString();
        }
    }
}
